package com.jinarusha.shareprayers;

import com.jinarusha.shareprayers.R;
import com.jinarusha.shareprayers.R.drawable;
import com.jinarusha.shareprayers.R.layout;


import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;



public class MainView extends TabActivity {

	
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    
//	    setContentView(R.layout.main);
	    Resources res = getResources(); // Resource object to get Drawables
	    
	    TabHost tabHost = getTabHost();
	    tabHost.addTab(tabHost.newTabSpec("prayerActivityTab").setIndicator("My Prayers", res.getDrawable(R.drawable.ic_tab_myprayer)).setContent(new Intent(this,MyPrayersActivity.class)));
	    tabHost.addTab(tabHost.newTabSpec("prayerStreamTab").setIndicator("Prayer Stream", res.getDrawable(R.drawable.ic_tab_prayerstream)).setContent(new Intent(this,PrayerStreamActivity.class)));
	    tabHost.addTab(tabHost.newTabSpec("settingsTab").setIndicator("Settings").setContent(new Intent(this,SettingsActivity.class)));
	    
	    
	}
}
